package windows;

import java.awt.Container;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import coordinators.Cordinator;

public class WindowCreators extends JFrame implements ActionListener
{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private Container Contenedor;
	
	private JButton JBExit;

	private JLabel JLLName;
	private JLabel JLLName1;
	private JLabel JLLName2;
		
	ElaboratePie elaboratePie;
	Cordinator cordinator;

	public WindowCreators(WindowPrincipal superior)
	{
		super();

		Contenedor = getContentPane();
		Contenedor.setLayout(null);
		
		
		JBExit = new JButton("Aceptar");
		JBExit.setBounds(190,160,90,25);
		JBExit.addActionListener(this);		
		Contenedor.add(JBExit);

		JLLName = new JLabel("Diana Paola Lopez Perez");
		JLLName.setFont(new Font("Times New Roman", 3, 25));
		JLLName.setForeground(new java.awt.Color(0, 0, 153));
		JLLName.setBounds(80,20,400,40);
		Contenedor.add(JLLName);

		JLLName1 = new JLabel("Cristian Alexander Salazar");
		JLLName1.setFont(new Font("Times New Roman", 3, 25));
		JLLName1.setForeground(new java.awt.Color(0, 0, 153));
		JLLName1.setBounds(80,60,400,40);
		Contenedor.add(JLLName1);

		JLLName2 = new JLabel("Javier Dario Jaramillo B.");
		JLLName2.setFont(new Font("Times New Roman", 3, 25));
		JLLName2.setForeground(new java.awt.Color(0, 0, 153));
		JLLName2.setBounds(80,100,400,40);
		Contenedor.add(JLLName2);
		
		setTitle("Creadores");
		setSize(470,250);
		setLocation(200,100);
		setResizable(false);

		JBExit.addActionListener(this);
	
	}

	public void actionPerformed(ActionEvent evento)
	{
		if(evento.getSource()==JBExit)
		{
			setVisible(false);
		}
	}
	
	
	public void setCoordinador(Cordinator c)
	{
		cordinator = c;
	}
}
